//
//  VCOfSecond.m
//  UI08_页面间传值
//
//  Created by Scott on 16/5/12.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "VCOfSecond.h"
#import "ModelOfPic.h"

@interface VCOfSecond ()




@end

@implementation VCOfSecond


- (void)dealloc {
    [_labelOfUser release];
    [_contentOfLabel release];
    [super dealloc];
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    
    NSLog(@"%s", __FUNCTION__);
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    
    if (self) {
    
    }
    
    return  self;
    
}

- (void)loadView {
    NSLog(@"%s", __FUNCTION__);
    [super loadView];
}

- (void)viewDidLoad {
    NSLog(@"%s", __FUNCTION__);
    [super viewDidLoad];
    
    
    ModelOfPic *model = [ModelOfPic sharedModelOfPic];
    
    
    
    
//    self.navigationItem.title = @"第二页";
    
    [self createLabel];
    self.view.backgroundColor = [UIColor whiteColor];
    
}

- (void)createLabel {
    self.labelOfUser = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, 300, 40)];
    [self.view addSubview:self.labelOfUser];
    [_labelOfUser release];
    
    self.labelOfUser.backgroundColor = [UIColor cyanColor];
    
    self.labelOfUser.text = self.contentOfLabel;
    
}


@end
